<?php 

/**
 * Radcodes - SocialEngine Module
 *
 * @category   Application_Extensions
 * @package    Gmap
 * @copyright  Copyright (c) 2009-2010 Radcodes LLC (http://www.radcodes.com)
 * @license    http://www.radcodes.com/license/
 * @version    $Id$
 * @author     Vincent Van <vincent@radcodes.com>
 */

return array(

  // ------- on user profile tab

  array(
    'title' => 'Profile Gmaps',
    'description' => 'Displays a member\'s gmaps on their profile.',
    'category' => 'Gmaps',
    'type' => 'widget',
    'name' => 'gmap.profile-gmaps',
    'defaultParams' => array(
      'title' => 'Gmaps',
      'titleCount' => true,
      'max' => 5,
      'details' => 1,
      'photo' => 1,
    ),
    'adminForm' => array(
      'elements' => array(
        array(
          'Text',
          'title',
          array(
            'label' => 'Title',
            'value' => 'Gmaps',
          )
        ),
        array(
          'Text',
          'max',
          array(
            'label' => 'Max Gmaps',
            'value' => 5,
          ),
        ),
        array(
          'Select',
          'details',
          array(
            'label' => 'Show Details',
            'multiOptions' => array(
              1 => 'Yes',
              0 => 'No'
            ),
            'value' => 1,
          )
        ),
        array(
          'Select',
          'photo',
          array(
            'label' => 'Show Photo',
            'multiOptions' => array(
              1 => 'Yes',
              0 => 'No'
            ),
            'value' => 1,
          )
        ),               
      ),
    ),     
  ),
  
  // ------- gmap categories
  
  array(
    'title' => 'Gmap Categories',
    'description' => 'Displays a list of gmap categories.',
    'category' => 'Gmaps',
    'type' => 'widget',
    'name' => 'gmap.list-categories',
    'defaultParams' => array(
      'title' => '',
      'details' => 0,
      'photo' => 1,
      'descriptionlength' => 68,
    ),   
    'adminForm' => array(
      'elements' => array(
        array(
          'Text',
          'title',
          array(
            'label' => 'Title',
            'value' => '',
          )
        ),
        array(
          'Select',
          'details',
          array(
            'label' => 'Show Details',
            'multiOptions' => array(
              1 => 'Yes',
              0 => 'No'
            ),
            'value' => 0,
          )
        ),
        array(
          'Select',
          'photo',
          array(
            'label' => 'Show Photo',
            'multiOptions' => array(
              1 => 'Yes',
              0 => 'No'
            ),
            'value' => 1,
          )
        ),
        array(
          'Text',
          'descriptionlength',
          array(
            'label' => 'Max Description Characters',
            'value' => 68,
          ),
        ),
      ),
    ),    
  ),   
  
  // ------- recent / latest gmaps
  
  array(
    'title' => 'Recent Gmaps',
    'description' => 'Displays a list of recently posted gmaps.',
    'category' => 'Gmaps',
    'type' => 'widget',
    'name' => 'gmap.list-recent',
    'defaultParams' => array(
      'title' => 'Recent Gmaps',
      'titlelength' => 18,
      'descriptionlength' => 196,  
      'max' => 8,
      'details' => 1,
      'photo' => 1,
    ),  
    'adminForm' => array(
      'elements' => array(
        array(
          'Text',
          'title',
          array(
            'label' => 'Title',
            'value' => 'Recent Gmaps',
          )
        ),
        array(
          'Text',
          'titlelength',
          array(
            'label' => 'Max Title Characters',
            'value' => 8,
          )
        ),
        array(
          'Text',
          'descriptionlength',
          array(
            'label' => 'Max Description Characters',
            'value' => 196,
          )
        ),         
        array(
          'Text',
          'max',
          array(
            'label' => 'Max Gmaps',
            'value' => 16,
          ),
        ),
        array(
          'Select',
          'details',
          array(
            'label' => 'Show Details',
            'multiOptions' => array(
              1 => 'Yes',
              0 => 'No'
            ),
            'value' => 1,
          )
        ), 
        array(
          'Select',
          'photo',
          array(
            'label' => 'Show Photo',
            'multiOptions' => array(
              1 => 'Yes',
              0 => 'No'
            ),
            'value' => 1,
          )
        ),              
      ),
    ),    
  ),  
  
  // ------- featured gmaps
  
  array(
    'title' => 'Featured Gmaps',
    'description' => 'Displays a list of featured gmaps.',
    'category' => 'Gmaps',
    'type' => 'widget',
    'name' => 'gmap.list-featured',
    'defaultParams' => array(
      'title' => 'Featured Gmaps',
      'titlelength' => 48,
      'descriptionlength' => 160,
      'max' => 1,
      'details' => 1,
      'photo' => 1,
    ),   
    'adminForm' => array(
      'elements' => array(
        array(
          'Text',
          'title',
          array(
            'label' => 'Title',
            'value' => 'Featured Gmaps',
          )
        ),
        array(
          'Text',
          'titlelength',
          array(
            'label' => 'Max Title Characters',
            'value' => 48,
          )
        ),
        array(
          'Text',
          'descriptionlength',
          array(
            'label' => 'Max Description Characters',
            'value' => 160,
          )
        ),                
        array(
          'Text',
          'max',
          array(
            'label' => 'Max Gmaps',
            'value' => 1
          )
        ),
        array(
          'Select',
          'details',
          array(
            'label' => 'Show Details',
            'multiOptions' => array(
              1 => 'Yes',
              0 => 'No'
            ),
            'value' => 1,
          )
        ),
        array(
          'Select',
          'photo',
          array(
            'label' => 'Show Photo',
            'multiOptions' => array(
              1 => 'Yes',
              0 => 'No'
            ),
            'value' => 1,
          )
        ),
      ),
    ),    
  ),   
  
  // ------- sponsored gmaps
  
  array(
    'title' => 'Sponsored Gmaps',
    'description' => 'Displays a list of sponsored gmaps.',
    'category' => 'Gmaps',
    'type' => 'widget',
    'name' => 'gmap.list-sponsored',
    'defaultParams' => array(
      'title' => 'Sponsored Gmaps',
      'titlelength' => 48,
      'max' => 3,
      'details' => 1,
      'photo' => 1,
    ),   
    'adminForm' => array(
      'elements' => array(
        array(
          'Text',
          'title',
          array(
            'label' => 'Title',
            'value' => 'Sponsored Gmaps'
          )
        ),
        array(
          'Text',
          'titlelength',
          array(
            'label' => 'Max Title Characters',
            'value' => 48,
          )
        ),        
        array(
          'Text',
          'max',
          array(
            'label' => 'Max Gmaps',
            'value' => 3,
          )
        ),
        array(
          'Select',
          'details',
          array(
            'label' => 'Show Details',
            'multiOptions' => array(
              1 => 'Yes',
              0 => 'No'
            ),
            'value' => 1,
          )
        ),  
        array(
          'Select',
          'photo',
          array(
            'label' => 'Show Photo',
            'multiOptions' => array(
              1 => 'Yes',
              0 => 'No'
            ),
            'value' => 1,
          )
        ),    
      ),
    ),  
  ),   

  // ------- most commented gmaps
  
  array(
    'title' => 'Most Commented Gmaps',
    'description' => 'Displays a list of most commented gmaps.',
    'category' => 'Gmaps',
    'type' => 'widget',
    'name' => 'gmap.list-most-commented',
    'defaultParams' => array(
      'title' => 'Most Commented',
      'titlelength' => 28,
      'max' => 5,
      'details' => 1,
      'photo' => 1,
      'period' => 30,
    ),   
    'adminForm' => array(
      'elements' => array(
        array(
          'Text',
          'title',
          array(
            'label' => 'Title',
            'value' => 'Most Commented'
          )
        ),
        array(
          'Text',
          'titlelength',
          array(
            'label' => 'Max Title Characters',
            'value' => 28,
          )
        ),
        array(
          'Text',
          'max',
          array(
            'label' => 'Max Gmaps',
            'value' => 5,
          )
        ),
        array(
          'Select',
          'details',
          array(
            'label' => 'Show Details',
            'multiOptions' => array(
              1 => 'Yes',
              0 => 'No'
            ),
            'value' => 1,
          )
        ),  
        array(
          'Select',
          'photo',
          array(
            'label' => 'Show Photo',
            'multiOptions' => array(
              1 => 'Yes',
              0 => 'No'
            ),
            'value' => 1,
          )
        ),
        array(
          'Select',
          'period',
          array(
            'label' => 'Period',
            'multiOptions' => array(
              0 => "All Time",
              7 => "This Week",
              30 => "This Month",
              90 => "3 Months",
              180 => "6 Months",
              365 => "This Year",
            ),
            'value' => 30,
          )
        ),            
      ),
    ),  
  ),
  
  // ------- most liked gmaps
  array(
    'title' => 'Most Liked Gmaps',
    'description' => 'Displays a list of most liked gmaps.',
    'category' => 'Gmaps',
    'type' => 'widget',
    'name' => 'gmap.list-most-liked',
    'defaultParams' => array(
      'title' => 'Most Liked',
      'titlelength' => 28,
      'max' => 5,
      'details' => 1,
      'photo' => 1,
      'period' => 30,
    ),   
    'adminForm' => array(
      'elements' => array(
        array(
          'Text',
          'title',
          array(
            'label' => 'Title',
            'value' => 'Most Liked'
          )
        ),
        array(
          'Text',
          'titlelength',
          array(
            'label' => 'Max Title Characters',
            'value' => 28,
          )
        ),
        array(
          'Text',
          'max',
          array(
            'label' => 'Max Gmaps',
            'value' => 5,
          )
        ),
        array(
          'Select',
          'details',
          array(
            'label' => 'Show Details',
            'multiOptions' => array(
              1 => 'Yes',
              0 => 'No'
            ),
            'value' => 1,
          )
        ),  
        array(
          'Select',
          'photo',
          array(
            'label' => 'Show Photo',
            'multiOptions' => array(
              1 => 'Yes',
              0 => 'No'
            ),
            'value' => 1,
          )
        ),
        array(
          'Select',
          'period',
          array(
            'label' => 'Period',
            'multiOptions' => array(
              0 => "All Time",
              7 => "This Week",
              30 => "This Month",
              90 => "3 Months",
              180 => "6 Months",
              365 => "This Year",
            ),
            'value' => 30,
          )
        ),            
      ),
    ),  
  ),

  // ------- most viewed gmaps
  
  array(
    'title' => 'Most Viewed Gmaps',
    'description' => 'Displays a list of most viewed gmaps.',
    'category' => 'Gmaps',
    'type' => 'widget',
    'name' => 'gmap.list-most-viewed',
    'defaultParams' => array(
      'title' => 'Most Viewed',
      'titlelength' => 28,
      'max' => 5,
      'details' => 1,
      'photo' => 1,
      'period' => 30,
    ),   
    'adminForm' => array(
      'elements' => array(
        array(
          'Text',
          'title',
          array(
            'label' => 'Title',
            'value' => 'Most Viewed'
          )
        ),
        array(
          'Text',
          'titlelength',
          array(
            'label' => 'Max Title Characters',
            'value' => 28,
          )
        ),
        array(
          'Text',
          'max',
          array(
            'label' => 'Max Gmaps',
            'value' => 5,
          )
        ),
        array(
          'Select',
          'details',
          array(
            'label' => 'Show Details',
            'multiOptions' => array(
              1 => 'Yes',
              0 => 'No'
            ),
            'value' => 1,
          )
        ),  
        array(
          'Select',
          'photo',
          array(
            'label' => 'Show Photo',
            'multiOptions' => array(
              1 => 'Yes',
              0 => 'No'
            ),
            'value' => 1,
          )
        ),     
        array(
          'Select',
          'period',
          array(
            'label' => 'Period',
            'multiOptions' => array(
              0 => "All Time",
              7 => "This Week",
              30 => "This Month",
              90 => "3 Months",
              180 => "6 Months",
              365 => "This Year",
            ),
            'value' => 30,
          )
        ),                 
      ),
    ),  
  ),  
  
  // ------- top menu nav
  array(
    'title' => 'Menu Gmaps',
    'description' => 'Displays a menu navigation (Browse Gmap, My Gmaps, Post New Gmap) on gmap home page.',
    'category' => 'Gmaps',
    'type' => 'widget',
    'name' => 'gmap.list-menu',
  ), 
  
  // ------- search form
  
  array(
    'title' => 'Search Gmaps',
    'description' => 'Displays search form on gmap home page.',
    'category' => 'Gmaps',
    'type' => 'widget',
    'name' => 'gmap.list-search',
  ), 
  
  // ------- popular tags
  
  array(
    'title' => 'Popular Tags',
    'description' => 'Displays gmap popular tags.',
    'category' => 'Gmaps',
    'type' => 'widget',
    'name' => 'gmap.list-tags',
    'defaultParams' => array(
      'title' => 'Popular Tags',
      'max' => 50,
      'order' => 'text',
    ),
    'adminForm' => array(
      'elements' => array(
        array(
          'Text',
          'title',
          array(
            'label' => 'Title',
            'value' => 'Popular Tags',
          )
        ),
        array(
          'Text',
          'max',
          array(
            'label' => 'Max Gmaps',
            'value' => 50,
          ),
        ),
        array(
          'Select',
          'order',
          array(
            'label' => 'Order By',
            'multiOptions' => array(
              'text' => 'Tag Name',
              'total' => 'Total Count'
            ),
            'value' => 'text',
          )
        ),                
      ),
    ),     
  ),

  
);

/**
 * Radcodes - SocialEngine Module
 *
 * @category   Application_Extensions
 * @package    Gmap
 * @copyright  Copyright (c) 2009-2010 Radcodes LLC (http://www.radcodes.com)
 * @license    http://www.radcodes.com/license/
 * @version    $Id$
 * @author     Vincent Van <vincent@radcodes.com>
 */

return array(
  array(
    'title' => 'Profile Gmaps',
    'description' => 'Displays a member\'s gmaps on their profile.',
    'category' => 'Gmaps',
    'type' => 'widget',
    'name' => 'gmap.profile-gmaps',
    'defaultParams' => array(
      'title' => 'Gmaps',
      'titleCount' => true,
      'max' => 5,
    ),
    'adminForm' => array(
      'elements' => array(
        array(
          'Text',
          'title',
          array(
            'label' => 'Title',
            'value' => 'Gmaps',
          )
        ),
        array(
          'Text',
          'max',
          array(
            'label' => 'Max Item',
            'value' => 5,
          ),
        ),       
      ),
    ),     
  ),
  
  
  
  array(
    'title' => 'Recent Gmaps',
    'description' => 'Displays a list of recently posted gmaps with map.',
    'category' => 'Gmaps',
    'type' => 'widget',
    'name' => 'gmap.list-recent',
    'defaultParams' => array(
      'title' => 'Recent Gmaps',
      'max' => 5,
      'photo' => 1,
    ),  
    'adminForm' => array(
      'elements' => array(
        array(
          'Text',
          'title',
          array(
            'label' => 'Title',
            'value' => 'Recent Gmaps',
          )
        ),
        array(
          'Text',
          'max',
          array(
            'label' => 'Max Item',
            'value' => 5,
          ),
        ),
        array(
          'Select',
          'photo',
          array(
            'label' => 'Show Photo',
            'multiOptions' => array(
              1 => 'Yes',
              0 => 'No'
            ),
            'value' => 1,
          )
        ),        
      ),
    ),    
  ),  
  
  array(
    'title' => 'Featured Gmaps',
    'description' => 'Displays a list of featured gmaps.',
    'category' => 'Gmaps',
    'type' => 'widget',
    'name' => 'gmap.list-featured',
    'defaultParams' => array(
      'title' => 'Featured Gmaps',
      'max' => 5,
      'photo' => 1,
    ),   
    'adminForm' => array(
      'elements' => array(
        array(
          'Text',
          'title',
          array(
            'label' => 'Title',
            'value' => 'Featured Gmaps',
          )
        ),
        array(
          'Text',
          'max',
          array(
            'label' => 'Max Item',
            'value' => 5
          )
        ),
        array(
          'Select',
          'photo',
          array(
            'label' => 'Show Photo',
            'multiOptions' => array(
              1 => 'Yes',
              0 => 'No'
            ),
            'value' => 1,
          )
        ),
      ),
    ),    
  ),   
  
  array(
    'title' => 'Sponsored Gmaps',
    'description' => 'Displays a list of sponsored gmaps.',
    'category' => 'Gmaps',
    'type' => 'widget',
    'name' => 'gmap.list-sponsored',
    'defaultParams' => array(
      'title' => 'Sponsored Gmaps',
      'max' => 5,
      'photo' => 1,
    ),   
	  'adminForm' => array(
	    'elements' => array(
	      array(
	        'Text',
	        'title',
	        array(
	          'label' => 'Title',
	          'value' => 'Sponsored Gmaps'
	        )
	      ),
	      array(
	        'Text',
	        'max',
	        array(
	          'label' => 'Max Item',
	          'value' => 5,
	        )
	      ),
        array(
          'Select',
          'photo',
          array(
            'label' => 'Show Photo',
            'multiOptions' => array(
              1 => 'Yes',
              0 => 'No'
            ),
            'value' => 1,
          )
        ),	      
	    ),
	  ),  
  ),   

  
) ?>